<template>
<div>
	<div class="banner" @click="handleBannerClick">
		<img class="banner-img" src="//img1.qunarzz.com/sight/p0/1508/89/895a1b7add84f23faca053ce9e3153db.water.jpg_600x330_93d96bdf.jpg" >
		<div class="banner-info">
			<div class="banner-title">北京欢乐谷(AAAA景区)</div>
			<div class="banner-number"><span class="iconfont banner-icon">&#xe692;</span>39</div>
		</div>
	</div>
	<common-gallery :imgs="imgs" v-show="showGallery" @close="close"></common-gallery>
</div>
</template>
<script>
import CommonGallery from 'common/gallery/Gallery.vue'
	export default {
		name:'DetailBanner',
		components:{
			CommonGallery
		},
		methods:{
			handleBannerClick(){
				this.showGallery=true;
			},
			close(){
				this.showGallery=false;
			}
		},
		data:function(){
			return {
					showGallery:false,
					imgs:['http://img1.qunarzz.com/sight/p0/1508/ca/4b627c0f2d6c7834280a630101e02edb.water.jpg_r_800x800_f798b6ac.jpg','//img1.qunarzz.com/sight/p0/1508/89/895a1b7add84f23faca053ce9e3153db.water.jpg_600x330_93d96bdf.jpg','http://img1.qunarzz.com/sight/p0/1508/c3/c9f7c607b7b3ff004a84cc9cd90ae4bd.water.jpg_r_800x800_20c333d2.jpg','http://img1.qunarzz.com/sight/p0/1508/36/88ba72984816cd08810a80e0d65e4224.water.jpg_r_800x800_306e631b.jpg','http://img1.qunarzz.com/sight/p0/1508/d1/fe04b22a0cec7207fe8203e0b998143f.water.jpg_r_800x800_8b91a2ff.jpg']
					}
		}
	}
</script>
<style scoped>
	.banner{
		position: relative;
		height: 0;
		overflow: hidden;
		padding-bottom:55%;
	}
	.banner-img{
		width: 100%;
	}
	.banner-info{
		display: flex;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		line-height: .6rem;
		color: #fff;
		background-image: linear-gradient(top,rgba(0,0,0,0),rgba(0,0,0,1));
	}
	.banner-title{
		flex: 1;
		font-size: .32rem;
		padding: 0.2rem;
	}
	.banner-number{
		padding:0 0.4rem;
		line-height: .32rem;
		height: .32rem;
		border-radius: .2rem;
		background: rgba(0,0,0,.8);
		font-size: .26rem;
		margin-top: .28rem;

	}
	.banner-icon{
		font-size: .24rem;
	}

</style>